package br.ufcg.les;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;

public class Recipes extends Activity {
	
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.recipes);
    }
    
    public void onclickback(View v){
    	Intent i = new Intent();
    	i.setClass(this, BBQcalculatorActivity.class);
    	startActivity(i);
    }

    public void onclickfood(View v){
    	Intent i = new Intent();
    	i.setClass(this, FoodRecipe.class);
    	startActivity(i);
    }    
   
    public void onclickonline(View v){
        String url = "http://www.comidaereceitas.com.br/";  
        Intent i = new Intent(Intent.ACTION_VIEW);  
        i.setData(Uri.parse(url));  
        startActivity(i);    	
    }
    
    public void onclickdrink(View v){
    	Intent i = new Intent();
    	i.setClass(this, DrinkRecipe.class);
    	startActivity(i);
    }
}